Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in cloner transparency #1388

Merged
merged 4 commits into from
Aug 11, 2024
Merged

Conversation

olivervogel
Copy link
Member

@olivervogel olivervogel commented Aug 5, 2024

See #1389

If an image has been cloned with cloneEmpty() and a completely transparent color e.g. "rgba(255, 255, 255, 0)" was specified as the background, the end result is an opaque white, for certain image formats. Observed with GIF.

This patch sets the background color as fully transparent if it has an alpha channel value of 0, i.e. 100% transparent (clear).

If an image was cloned with cloneEmpty() and a fully transparent color
for exampe "rgba(255, 255, 255, 0)" the turned out as white background.

This patch sets the background color as fully transparent if it has an
alpha channel value of 0 i.e. 100% transparent (clear).
@olivervogel olivervogel added this to the 3.8.0 milestone Aug 5, 2024
@olivervogel olivervogel merged commit 9f5e062 into develop Aug 11, 2024
12 checks passed
@olivervogel olivervogel deleted the patch/cloner-transparency branch August 11, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant